package guestbook.rest;

import guestbook.model.GuestbookEntry;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import org.fusesource.restygwt.client.MethodCallback;
import org.fusesource.restygwt.client.RestService;

public interface ApiGuestbookEntry extends RestService {
		
	@GET
	@Path("/api/guestbookentrys")
	public void getGuestbookEntrys (MethodCallback<List<GuestbookEntry>> callback);

	
	@POST
	@Path("/api/guestbookentry")
	public void addGuestbookEntry (
			GuestbookEntry guestbookEntry, 
			MethodCallback<Void> callback);
	
		
	@GET
	@Path("/api/guestbookentrys/{id}")
	public void getGuestbookEntry (
			@PathParam("id") String id,
			MethodCallback<List<GuestbookEntry>> callback);

}
